import React, { FC, useEffect } from "react";
import { Button, Form, Input, Modal } from "antd";

export const ModalCom = (props: any) => {
  let element = (
    <Form.Item
      label="类目id"
      name="category_id"
      rules={[{ required: true, message: "Please input your category_id!" }]}
    >
      <Input />
    </Form.Item>
  );
  console.log(props.open);
  let { handleOk, handleCancel, title } = props;
  return (
    <>
      <Modal
        transitionName=""
        title={title}
        open={props.open}
        onOk={handleOk}
        onCancel={handleCancel}
        closable={false}
      >
        {/* {element} */}
        <div className="ff" style={{}}>
          {props.children}
        </div>
      </Modal>
    </>
  );
};
